using DG.Tweening;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CardListUI : MonoBehaviour
{
    public List<Card> cardList;
    private void Start()
    {
        DisableCardList();
        ShowCardList();
    }
    public void ShowCardList()
    {
        GetComponent<RectTransform>().DOAnchorPosY(-48, 1f);
        EnableCard();
    }
    public void DisableCardList()
    {
        foreach (var item in cardList)
        {
            item.DisableCard();
        }
    }
    void EnableCard()
    {
        foreach (var item in cardList)
        {
            item.EnableCard();
        }
    }
}
